<template>
    <div style="width:80%">
        <h3>订单管理</h3>
        <el-table
        :data="dd"
        style="width: 100%;text-align:center">
            <el-table-column
                prop="_id"
                label="订单编号"
                >
            </el-table-column>
            <el-table-column
                prop="name"
                label="收货地址"
            >
            </el-table-column>
            <el-table-column
                prop="price"
                label="收件人">
            </el-table-column>
            <el-table-column
                prop="shop"
                label="手机号码">
            </el-table-column>
            <el-table-column
                prop="describe"
                label="交易状态">
            </el-table-column>
            <el-table-column
                prop="number"
                label="订单总价">
            </el-table-column>
            <el-table-column
                prop="type"
                label="下单时间">
            </el-table-column>
            <el-table-column
            fixed="right"
            label="操作"
            width="100">
            <template>
                <el-button @click="ddedit" type="text" size="small">编辑</el-button>
                <el-button @click="dddel" type="text" size="small">删除</el-button>
            </template>
            </el-table-column>
        </el-table>
    </div>
</template>
<script>
export default {
    data(){
        return{
            dd:[
                {"_id":0,"name":"北京市","price":"tom","shop":"123456789","describe":"待付款","number":1245,"type":"2020/10/23"}
            ]
        }
    },
    methods:{
        ddedit(){
            this.$router.push("/")
        },
        dddel(){
            this.$router.push("/")
        }
    }
}
</script>